﻿using System;

namespace AMM.Business {
    public class CommonHelper {
        public static string GenerateAutoCode(string startCharacter) {
            return string.Format("{0}{1}", startCharacter, DateTime.Now.Date.ToString("yyMMdd"));
        }

        public static string GendrateSpecificCode(string autoCode, int i) {
            return string.Format("{0}{1}{2}", autoCode, i < 10 ? "0" : string.Empty, i);
        }
    }
}
